package com.epin.business.system.controller;

import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <p>
 * 用户账户表 前端控制器
 * </p>
 *
 * @author xj
 * @since 2016-12-20
 */
@Controller
@RequestMapping("/")
public class IndexController {
	

    @RequestMapping({"/", "/auth_index"})
    public String auth_index(Map<String, Object> map, String redirectUrl) {

        return "auth/index";
    }
    
    
    @RequestMapping("/index")
    public String index(Map<String, Object> map) {
      

        return "/index";
    }

    
    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login(HttpServletResponse response, @RequestHeader HttpHeaders header) {
       

        return "login";
    }

    
    @RequestMapping(value = "/dologin")
    public String doLogin(String username, String password, String rememberMe, 
    		String otherToken, Map<String, Object> map, String encryption, String redirectUrl) {

        return "login";
    }

    
    @RequestMapping(value = "logout", method = RequestMethod.GET)
    public String logout(Map<String, Object> map) {
    	return "/logout";
    }
    
    
    @RequestMapping(value = "agent", method = RequestMethod.GET)
    public String agent(){
    	return "agent";
    }
}

